package cn.edu.zut.soft.student.service.student;

import cn.edu.zut.soft.student.bean.PageBean;
import cn.edu.zut.soft.student.model.Course;
import cn.edu.zut.soft.student.model.SelectCourse;
import cn.edu.zut.soft.student.model.StudentSelectCourses;
import cn.edu.zut.soft.student.service.student.vo.StudnetQuery;

import java.util.List;

/**
 * @Author ChrisPhantom
 * @CreatDate 2021/02/22 19:15
 */
public interface StudentSelectCoursesBo {
    /*
     * @Param: [studnetQuery]
     * @Return: cn.edu.zut.soft.student.bean.PageBean<java.util.List<cn.edu.zut.soft.student.model.StudentSelectCourses>>
     * @Author: ChrisPhantom
     * @Date: 2021/2/22 19:21
     * @Description: 查询所有学生的所有选课课程（只查询由学生选的课程）
     */
    public PageBean<List<StudentSelectCourses>> queryStudentSelectCourses(StudnetQuery studnetQuery);

    /*
     * @Param: [studentid]
     * @Return: java.util.List<cn.edu.zut.soft.student.model.Course>
     * @Author: ChrisPhantom
     * @Date: 2021/2/22 19:22
     * @Description: 查询某个学生的所有选课课程
     */
    public List<Course> querySelectCourses(String studentid);

    /*
     * @Param: [studentid, courseid]
     * @Return: cn.edu.zut.soft.student.model.SelectCourse
     * @Author: ChrisPhantom
     * @Date: 2021/2/24 12:58
     * @Description: 查询成绩
     */
    public SelectCourse queryScore(String studentid, String courseid);

    /*
     * @Param: [studentid, selectCourse]
     * @Return: int
     * @Author: ChrisPhantom
     * @Date: 2021/2/24 22:33
     * @Description: 修改成绩
     */
    public int updateScore(SelectCourse selectCourse);
}
